#ifndef TESTFORM_H
#define TESTFORM_H

#include <QWidget>
#include "core/databasepool/databasepool.h"
#include "core/threadpool/threadpool.h"
#include "modules/user-management/usermanagement.h"
#include "modules/device-management/devicemanagement.h"
#include "modules/data-monitor/datamonitor.h"
#include "modules/alert-manager/alertmanager.h"
#include "modules/data-analysis/dataanalysis.h"
#include <QSqlTableModel>

QT_BEGIN_NAMESPACE
namespace Ui {class testForm;}
QT_END_NAMESPACE

class testForm : public QWidget
{
    Q_OBJECT

public:
    explicit testForm(QWidget *parent = nullptr);
    ~testForm();

private:
    Ui::testForm *ui;
    QSqlTableModel *model;
    // 初始化数据库
    void initDatabase();
    // 初始化线程池
    void initThreadPool();
    // 显示数据表
    void showTable(const QString &tableName);
};

#endif // TESTFORM_H
